package com.fit.lov.course;

import java.util.ArrayList;
import java.util.Collection;
import java.util.List;

import org.apache.tapestry5.OptionGroupModel;
import org.apache.tapestry5.OptionModel;
import org.apache.tapestry5.util.AbstractSelectModel;

import com.fit.entities.course.Course;

public class CourseSelectModel  extends AbstractSelectModel {
	private Collection<Course> course; 

	public CourseSelectModel(Collection<Course> course) {
		this.course = course;
	}

	public List<OptionGroupModel> getOptionGroups() {
		return null;
	}

	public List<OptionModel> getOptions() {
		List<OptionModel> list = new ArrayList<OptionModel>();
		for (Course t : course) {
			list.add(new CourseOptionModel(t));
		}
		return list;
	}
}
